home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17304 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: news.erl.sbs.de!news
  2. From: Gerolf Wendland <wendland%hpp015%hpp001.mch2.scn.de@scn.de>
  3. Newsgroups: comp.lang.c++,comp.lang.c,comp.os.ms-windows.programmer.misc
  4. Subject: Re: fastest code
  5. Date: Mon, 15 Apr 1996 08:12:34 +0200
  6. Organization: Siemens Business Services
  7. Message-ID: <3171E8D2.41C67EA6@scn.de>
  8. References: <316112A2.7D37@public.sta.net.cn> <4kjpn0INN817@keats.ugrad.cs.ubc.ca> <829352535snz@genesis.demon.co.uk> <4kof6e$te@news1.mnsinc.com> <4krbhlINNbk4@keats.ugrad.cs.ubc.ca>
  9. NNTP-Posting-Host: 139.3.107.122
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=iso-8859-2
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.01 (X11; I; SunOS 4.1.3 sun4m)
  14.  
  15. Kazimir Kylheku wrote:
  16. It was addition instead of multiplication by constant values (i+i instead of 2*i)
  17.  
  18. > If I were writing a compiler, I wouldn't bother ``optimizing'' this case at
  19. > all: If the programmer thinks he knows better, let him have his addition!
  20.  
  21. Let the programmer write down his way of solving the problem.
  22. Let the compiler try to do the tideous optimization as much as possible.
  23.